<?php
class Controller_Information extends Controller_Template
{
	public function actionIndex()
	{
		$this->template->title = "COMMUNITY INFORMATION-".$this->settings['title'];
		$this->template->content = new View('information/index');
		$text = Model::factory('directory')->getItemByToken('lu6', 'text');
    $this->template->content->communityText = $text;
		$categories = Model::factory('directory')->getCategories('community', 'position', 'ASC');
		$this->template->content->categories = $categories;
		$items = Model::factory('directory')->getItemsByCategory('community', 'position', 'ASC');
		$this->template->content->items = $items;
	}
}